<?php

namespace fize\think\response;

use think\Response;

/**
 * 响应：图片
 */
class Image extends Response
{

    /**
     * @param string $contentType contentType
     * @param string $data        图片流
     * @param int    $code        HTTP码
     */
    public function __construct(string $contentType, string $data, int $code = 200)
    {
        $this->contentType = $contentType;
        $this->init($data, $code);
    }
}
